package com.dgt.trade.service.impl;

import com.dgt.trade.dao.PromotionDao;
import com.dgt.trade.entitys.Promotion;
import com.dgt.trade.service.PromotionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PromotionServiceImpl implements PromotionService {

    @Autowired
    private PromotionDao promotionDao;

    @Override
    public List<Promotion> selectPromotionById(int id) {
        return promotionDao.selectPromotionById(id);
    }

    @Override
    public int insertPromotion(Promotion promotion) {
        return promotionDao.insertPromotion(promotion);
    }
}
